<?php
/* @var $this MessageController */
/* @var $model Message */
/* @var $form CActiveForm */
?>

<div class="form">
	
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'message-form',
	'enableAjaxValidation'=>False,
	'enableClientValidation'=>True,
	'clientOptions'=>array("validateOnSubmit"=>True,"validateOnChange"=>false),
	'focus'=>array($model,'Titile'),
)); ?>

	<fieldset> <!-- Set class to "column-left" or "column-right" on fieldsets to divide the form into columns -->
	<table>
		<tr>
			<td><?php echo $form->labelEx($model,'Titile'); ?></td>
			<td><?php echo $form->textField($model,'Titile',array('size'=>60,'maxlength'=>100,'class'=>'text-input medium-input')); ?></td>
			<td><?php echo $form->error($model,'Titile'); ?></td>
		</tr>

		<tr>
			<td valign="top" style="vertical-align:top"><?php echo $form->labelEx($model,'Content'); ?></td>
			<td><?php echo $form->textArea($model,'Content',array('rows'=>6, 'cols'=>50)); ?></td>
			<td valign="middle" style="vertical-align:middle"><?php echo $form->error($model,'Content'); ?></td>
		</tr>
		<tr>
			<td><?php echo $form->labelEx($model,'MsgSended'); ?></td>
			<td><?php echo $form->dropDownList($model,'MsgSended',Yii::app()->params["MsgSended"]); ?></td>
			<td><?php echo $form->error($model,'MsgSended'); ?></td>
		</tr>		
		<tr>
			<td colspan="3"><?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存',array("class"=>"button")); ?></td>			
		</tr>
	</table>
	</fieldset>
	

<?php $this->endWidget(); ?>

</div><!-- form -->